package com.imooc.bilibili.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author gcq
 * @Create 2022-06-12
 */
@FeignClient(value = "imooc-bilibili-ms-api")
public interface MsDeclareService {

    @GetMapping("/demos")
    public Long msGet(@RequestParam Long id);

    @GetMapping("/demos")
    public Map<String, Object> msPost(@RequestBody Map<String, Object> params);

}